package com.test;

import java.lang.ref.Reference;
import java.lang.ref.WeakReference;

public class MyrefDemo {

	
	public class MyRef extends WeakReference<Object>{

		public MyRef(Object referent) {
			super(referent);
		}

		@Override
		public Object get() {
			return super.get();
		}

		@Override
		public void clear() {
			super.clear();
		}

		@Override
		public boolean isEnqueued() {
			return super.isEnqueued();
		}

		@Override
		public boolean enqueue() {
			return super.enqueue();
		}

		
		
	}
	
	/**
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
